#ifndef DATACORE_H
#define DATACORE_H

#include <iostream>

using namespace std;

class User
{
private:
    string userName;
public:
    string getName () { return userName; }
    void setName ( string s ) { userName = s; }
};

class StudentUser : public User
{
private:
    double score;
public:
    StudentUser (): score( 0 ) {}
    void setStudent ( string n, double s )
    {this->setName( n ); score = s;}
    double getScore () { return score; }
    void setScore ( double s ) {score = s;}
};

class InstructorUser : public User
{
public:
    void setInstructor ( string s ) {this->setName ( s );}
};

struct studentInfo
{
    class StudentUser *stu;
    struct studentInfo *next;
};

struct instructorInfo
{
    class InstructorUser *ins;
    struct instructorInfo *next;
};

#endif //DATACORE_H
